import { UiSpinner } from "@/shared/Uikit/UiSpinner"
import { useGetCurrentUser } from "../model/useGetCurrentUser"
import Link from "next/link"

export default function UiProfile() {
    const { isLoading, errorMessage, user, isSuccess } = useGetCurrentUser()
    return (
        <>
            {isSuccess && user &&
                <Link href={''} className="flex items-center">
                    <p className="text-gray-600 mr-4">{user.email}</p>
                    <img src='/avatar_placeholder.jpg' alt="Аватар пользователя" className="w-8 h-8 rounded-full mr-2" />
                </Link>
            }
        </>

    )
}